@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="newsForm">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-12 b-r">
                    <div class="form-group">
                        <label class="col-sm-1 control-label">父标题</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="parentTitle" name="parentTitle" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">标题</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="title" name="title" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">类别</label>
                        <div class="col-sm-11">
                            <select id="category" name="category" class="form-control">
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">新闻概述</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="description" name="description" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">转载自</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="transmitFrom" name="transmitFrom" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">置顶</label>
                        <div class="col-sm-11">
                            <select id="isTop" name="isTop" class="form-control">
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">作者</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="author" name="author" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">排序值</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="orderval" name="orderval" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">关键词</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="keyword" name="keyword" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">阅读数</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="readtimes" name="readtimes" type="text">
                        </div>
                    </div>
                    <#date id="createTime" name="创建时间" underline="true" type="datetime" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">添加外部链接</label>
                        <div class="col-sm-11">
                            <select id="addELinkOrNot" name="addELinkOrNot" class="form-control" onchange="NewsInfoDlg.addELink()">
                                <option value="0" selected="selected">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <#picture id="picture" name="图片" underline="true"/>
                    <div class="form-group" id="eLinkDiv" style="display: none">
                        <label class="col-sm-1 control-label">外部链接</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="externalLink" name="externalLink" type="text">
                        </div>
                    </div>
                    <div class="form-group" id="contentDiv">
                        <label class="col-sm-1 control-label">内容</label>
                        <div id="ueditorDiv" class="col-sm-11">
                            <script id="ueditor" name="content" type="text/plain"></script>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="NewsInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="NewsInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="${ctxPath}/static/modular/newsMgr/news/news_add.js"></script>
@}
